$a = @(0..3)
$a.ForEach({ $_ * $_})

@("1/1/2017","2/1/2017","3/1/2017").ForEach([datetime])

# LastAccessTime 最后访问时间
# 不用Adminstrator用户去访问系统文件夹就没有结果
# Date 日期
# dir 文件路径，这段语句是管道命令
(dir 'C:\Users\31840\powershell-workspace\About_Arrays\ForEach-array.ps1').ForEach('LastAccessTime', (Get-Date))

# Unique 唯一的
(dir 'C:\Users\31840\powershell-workspace\About_Arrays\ForEach-array.ps1').ForEach('LastAccessTime') | Get-Unique

("one","two","three").ForEach("ToUpper")

("ONE","TWO","THREE").ForEach("ToLower")

